<?php
/*
    RabbitSmiley Emoticon Library is useful for connecting PHP programs to
    MySQL Databases using a common framework to avoid redundancy.

    Copyright (C) 2013  White Rabbit

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
function smiley($data) {
	$data = str_replace(":)","<img src='media/images/smile/smile.png'>",$data);
	$data = str_replace(";)","<img src='media/images/smile/wink.png'>",$data);
	$data = str_replace(":P","<img src='media/images/smile/tongue.png'>",$data);
	$data = str_replace(":p","<img src='media/images/smile/tongue.png'>",$data);
	$data = str_replace(":(","<img src='media/images/smile/sad.png'>",$data);
	$data = str_replace(":'(","<img src='media/images/smile/crying.png'>",$data);
	$data = str_replace(":$","<img src='media/images/smile/embarrassed.png'>",$data);
	$data = str_replace("(A)","<img src='media/images/smile/angel.png'>",$data);
	$data = str_replace("(a)","<img src='media/images/smile/angel.png'>",$data);
	$data = str_replace(":@","<img src='media/images/smile/angry.png'>",$data);
	$data = str_replace(":S","<img src='media/images/smile/confused.png'>",$data);
	$data = str_replace(":s","<img src='media/images/smile/confused.png'>",$data);
	$data = str_replace(":D","<img src='media/images/smile/smile-big.png'>",$data);
	$data = str_replace(":d","<img src='media/images/smile/smile-big.png'>",$data);
	$data = str_replace(":o","<img src='media/images/smile/shock.png'>",$data);
	$data = str_replace(":|","<img src='media/images/smile/disapointed.png'>",$data);
	$data = str_replace(":#","<img src='media/images/smile/sleepy.png'>",$data);
	$data = str_replace("8-)","<img src='media/images/smile/eyeroll.png'>",$data);
	$data = str_replace("(lying)","<img src='media/images/smile/lying.png'>",$data);
	$data = str_replace("8-|","<img src='media/images/smile/glasses-nerdy.png'>",$data);
	$data = str_replace("(a)","<img src='media/images/smile/angel.png'>",$data);
	$data = str_replace("(bye)","<img src='media/images/smile/bye.png'>",$data);
	$data = str_replace("(clap)","<img src='media/images/smile/clap.png'>",$data);
	$data = str_replace("(A)","<img src='media/images/smile/angel.png'>",$data);
	$data = str_replace("(BYE)","<img src='media/images/smile/bye.png'>",$data);
	$data = str_replace("(CLAP)","<img src='media/images/smile/clap.png'>",$data);
	$data = str_replace("(})","<img src='media/images/smile/hug-right.png'>",$data);
	$data = str_replace("({)","<img src='media/images/smile/hug-left.png'>",$data);
	$data = str_replace("(y)","<img src='media/images/smile/good.png'>",$data);
	$data = str_replace("(n)","<img src='media/images/smile/bad.png'>",$data);
	$data = str_replace("(Y)","<img src='media/images/smile/good.png'>",$data);
	$data = str_replace("(N)","<img src='media/images/smile/bad.png'>",$data);
	$data = str_replace("(h5)","<img src='media/images/smile/highfive.png'>",$data);
	$data = str_replace("(hi5)","<img src='media/images/smile/highfive.png'>",$data);
	$data = str_replace("(H5)","<img src='media/images/smile/highfive.png'>",$data);
	$data = str_replace("(Hi5)","<img src='media/images/smile/highfive.png'>",$data);
	$data = str_replace("(L)","<img src='media/images/smile/love.png'>",$data);
	$data = str_replace("(U)","<img src='media/images/smile/love-over.png'>",$data);
	
	return $data;
	
}
?>
